import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';

import { SafeAreaView } from 'react-navigation';
import Items from '../components/items';
import BaseStyle from '../constants/Style';

export default class OptionScreen extends Component {
  // static propTypes = {

  // };

  // static defaultProps = {

  // };
  constructor(props) {
    super(props);
  }

  componentDidMount = () => {};

  componentWillUnMount = () => {};

  render() {
    const {
      navigation: { navigate },
    } = this.props;
    return (
      <SafeAreaView
        style={[BaseStyle.flex, styles.homebg]}
        forceInset={{ top: 'never' }}>
        <View style={styles.container}>
          {/* list */}
          <Items
            LeftText={'toast提示'}
            RightIcon={'\ue615'}
            onPress={() => {
              navigate('ToastScreen');
            }}
          />
          <Items
            LeftText={'Modal模态框'}
            RightIcon={'\ue615'}
            onPress={() => {
              navigate('ModalScreen');
            }}
          />
          <Items
            LeftText={'动作面板Action-sheet'}
            RightIcon={'\ue615'}
            onPress={() => {
              navigate('ActionSheetScreen');
            }}
          />
          <Items
            LeftText={'Loading加载'}
            RightIcon={'\ue615'}
            onPress={() => {
              navigate('LoadingScreen');
            }}
          />
        </View>
      </SafeAreaView>
    );
  }
}

const styles = StyleSheet.create({
  homebg: {
    backgroundColor: '#eee',
  },
  container: {
    ...BaseStyle.flex,
    paddingTop: 20,
  },
});
